package com.scy.java.Test.Test01;
import java.util.Scanner;
//键盘录入两个整数值存储在变量中，将变量值交换保存
public class Test01 {
    public static void main(String[] args) {
        int a,b,c;
        System.out.println("请输入整数值：");
        Scanner scanner = new Scanner(System.in);
        a = scanner.nextInt();
        b = scanner.nextInt();
        System.out.println("交换之前a为："+a +";"+"b为："+b);
        c = a;
        a = b ;
        b = c ;
        System.out.println("交换之后a为："+a +";"+"b为："+b);
    }
}
